<?
if(!session_start())
session_start();

if(!isset($_SESSION['username']))
{
header("location:index.php");
exit();
}
?>